<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/4/19 0019
  Time: 上午 11:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>部门管理</title>

</head>
<body>
<a href="/deparment/add"><button>添加</button></a>

        <table>
            <tr>
                <th>部门</th>
                <th>操作</th>
            </tr>

                <c:forEach items="${listdeparment}" var="deparment">
                    <tr>
                        <td>${deparment.name}</td>
                        <td>
                            <%-- 根据deparmentId查询 绑定  --%>
                            <a href="/deparment/d/update?deparmentId=${deparment.id}"><button>编辑</button></a>
                            <a href="/deparment/d/detele?deparmentId=${deparment.id}"><button>删除</button></a>
                        </td>
                    </tr>
                </c:forEach>
        </table>
<script>

</script>
</body>
</html>
